home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 47 / PC Gamer IT CD 47 2-2.iso / Nerf / NERFDEMO.EXE / System / UWindow.u / UWindowWindow_UWindowPageControl_ScriptText.TextBuffer < prev    next >
Unknown  |  1999-10-21  |  4.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 61 49 63 6c 61 73 73 20 |........|aIclass |
|00000010| 55 57 69 6e 64 6f 77 50 | 61 67 65 43 6f 6e 74 72 |UWindowP|ageContr|
|00000020| 6f 6c 20 65 78 74 65 6e | 64 73 20 55 57 69 6e 64 |ol exten|ds UWind|
|00000030| 6f 77 54 61 62 43 6f 6e | 74 72 6f 6c 3b 0d 0a 0d |owTabCon|trol;...|
|00000040| 0a 2f 2f 66 75 6e 63 74 | 69 6f 6e 20 52 65 73 6f |.//funct|ion Reso|
|00000050| 6c 75 74 69 6f 6e 43 68 | 61 6e 67 65 64 28 66 6c |lutionCh|anged(fl|
|00000060| 6f 61 74 20 57 2c 20 66 | 6c 6f 61 74 20 48 29 0d |oat W, f|loat H).|
|00000070| 0a 2f 2f 7b 0d 0a 2f 2f | 09 6c 6f 63 61 6c 20 55 |.//{..//|.local U|
|00000080| 57 69 6e 64 6f 77 50 61 | 67 65 43 6f 6e 74 72 6f |WindowPa|geContro|
|00000090| 6c 50 61 67 65 20 49 3b | 0d 0a 2f 2f 0d 0a 2f 2f |lPage I;|..//..//|
|000000a0| 09 66 6f 72 28 49 20 3d | 20 55 57 69 6e 64 6f 77 |.for(I =| UWindow|
|000000b0| 50 61 67 65 43 6f 6e 74 | 72 6f 6c 50 61 67 65 28 |PageCont|rolPage(|
|000000c0| 49 74 65 6d 73 2e 4e 65 | 78 74 29 3b 20 49 20 21 |Items.Ne|xt); I !|
|000000d0| 3d 20 4e 6f 6e 65 3b 20 | 49 20 3d 20 55 57 69 6e |= None; |I = UWin|
|000000e0| 64 6f 77 50 61 67 65 43 | 6f 6e 74 72 6f 6c 50 61 |dowPageC|ontrolPa|
|000000f0| 67 65 28 49 2e 4e 65 78 | 74 29 29 0d 0a 2f 2f 09 |ge(I.Nex|t))..//.|
|00000100| 09 69 66 28 49 2e 50 61 | 67 65 20 21 3d 20 4e 6f |.if(I.Pa|ge != No|
|00000110| 6e 65 20 26 26 20 49 20 | 21 3d 20 53 65 6c 65 63 |ne && I |!= Selec|
|00000120| 74 65 64 54 61 62 20 29 | 0d 0a 2f 2f 09 09 09 49 |tedTab )|..//...I|
|00000130| 2e 50 61 67 65 2e 52 65 | 73 6f 6c 75 74 69 6f 6e |.Page.Re|solution|
|00000140| 43 68 61 6e 67 65 64 28 | 57 2c 20 48 29 3b 0d 0a |Changed(|W, H);..|
|00000150| 2f 2f 09 0d 0a 2f 2f 09 | 69 66 28 53 65 6c 65 63 |//...//.|if(Selec|
|00000160| 74 65 64 54 61 62 20 21 | 3d 20 4e 6f 6e 65 29 0d |tedTab !|= None).|
|00000170| 0a 2f 2f 09 09 55 57 69 | 6e 64 6f 77 50 61 67 65 |.//..UWi|ndowPage|
|00000180| 43 6f 6e 74 72 6f 6c 50 | 61 67 65 28 53 65 6c 65 |ControlP|age(Sele|
|00000190| 63 74 65 64 54 61 62 29 | 2e 50 61 67 65 2e 52 65 |ctedTab)|.Page.Re|
|000001a0| 73 6f 6c 75 74 69 6f 6e | 43 68 61 6e 67 65 64 28 |solution|Changed(|
|000001b0| 57 2c 20 48 29 3b 0d 0a | 2f 2f 7d 0d 0a 0d 0a 66 |W, H);..|//}....f|
|000001c0| 75 6e 63 74 69 6f 6e 20 | 4e 6f 74 69 66 79 51 75 |unction |NotifyQu|
|000001d0| 69 74 55 6e 72 65 61 6c | 28 29 0d 0a 7b 0d 0a 09 |itUnreal|()..{...|
|000001e0| 6c 6f 63 61 6c 20 55 57 | 69 6e 64 6f 77 50 61 67 |local UW|indowPag|
|000001f0| 65 43 6f 6e 74 72 6f 6c | 50 61 67 65 20 49 3b 0d |eControl|Page I;.|
|00000200| 0a 0d 0a 09 66 6f 72 28 | 49 20 3d 20 55 57 69 6e |....for(|I = UWin|
|00000210| 64 6f 77 50 61 67 65 43 | 6f 6e 74 72 6f 6c 50 61 |dowPageC|ontrolPa|
|00000220| 67 65 28 49 74 65 6d 73 | 2e 4e 65 78 74 29 3b 20 |ge(Items|.Next); |
|00000230| 49 20 21 3d 20 4e 6f 6e | 65 3b 20 49 20 3d 20 55 |I != Non|e; I = U|
|00000240| 57 69 6e 64 6f 77 50 61 | 67 65 43 6f 6e 74 72 6f |WindowPa|geContro|
|00000250| 6c 50 61 67 65 28 49 2e | 4e 65 78 74 29 29 0d 0a |lPage(I.|Next))..|
|00000260| 09 09 69 66 28 49 2e 50 | 61 67 65 20 21 3d 20 4e |..if(I.P|age != N|
|00000270| 6f 6e 65 29 0d 0a 09 09 | 09 49 2e 50 61 67 65 2e |one)....|.I.Page.|
|00000280| 4e 6f 74 69 66 79 51 75 | 69 74 55 6e 72 65 61 6c |NotifyQu|itUnreal|
|00000290| 28 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |();..}..|..functi|
|000002a0| 6f 6e 20 4e 6f 74 69 66 | 79 42 65 66 6f 72 65 4c |on Notif|yBeforeL|
|000002b0| 65 76 65 6c 43 68 61 6e | 67 65 28 29 0d 0a 7b 0d |evelChan|ge()..{.|
|000002c0| 0a 09 6c 6f 63 61 6c 20 | 55 57 69 6e 64 6f 77 50 |..local |UWindowP|
|000002d0| 61 67 65 43 6f 6e 74 72 | 6f 6c 50 61 67 65 20 49 |ageContr|olPage I|
|000002e0| 3b 0d 0a 0d 0a 09 66 6f | 72 28 49 20 3d 20 55 57 |;.....fo|r(I = UW|
|000002f0| 69 6e 64 6f 77 50 61 67 | 65 43 6f 6e 74 72 6f 6c |indowPag|eControl|
|00000300| 50 61 67 65 28 49 74 65 | 6d 73 2e 4e 65 78 74 29 |Page(Ite|ms.Next)|
|00000310| 3b 20 49 20 21 3d 20 4e | 6f 6e 65 3b 20 49 20 3d |; I != N|one; I =|
|00000320| 20 55 57 69 6e 64 6f 77 | 50 61 67 65 43 6f 6e 74 | UWindow|PageCont|
|00000330| 72 6f 6c 50 61 67 65 28 | 49 2e 4e 65 78 74 29 29 |rolPage(|I.Next))|
|00000340| 0d 0a 09 09 69 66 28 49 | 2e 50 61 67 65 20 21 3d |....if(I|.Page !=|
|00000350| 20 4e 6f 6e 65 29 0d 0a | 09 09 09 49 2e 50 61 67 | None)..|...I.Pag|
|00000360| 65 2e 4e 6f 74 69 66 79 | 42 65 66 6f 72 65 4c 65 |e.Notify|BeforeLe|
|00000370| 76 65 6c 43 68 61 6e 67 | 65 28 29 3b 0d 0a 7d 0d |velChang|e();..}.|
|00000380| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 4e 6f 74 69 |...funct|ion Noti|
|00000390| 66 79 41 66 74 65 72 4c | 65 76 65 6c 43 68 61 6e |fyAfterL|evelChan|
|000003a0| 67 65 28 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |ge()..{.|..local |
|000003b0| 55 57 69 6e 64 6f 77 50 | 61 67 65 43 6f 6e 74 72 |UWindowP|ageContr|
|000003c0| 6f 6c 50 61 67 65 20 49 | 3b 0d 0a 0d 0a 09 66 6f |olPage I|;.....fo|
|000003d0| 72 28 49 20 3d 20 55 57 | 69 6e 64 6f 77 50 61 67 |r(I = UW|indowPag|
|000003e0| 65 43 6f 6e 74 72 6f 6c | 50 61 67 65 28 49 74 65 |eControl|Page(Ite|
|000003f0| 6d 73 2e 4e 65 78 74 29 | 3b 20 49 20 21 3d 20 4e |ms.Next)|; I != N|
|00000400| 6f 6e 65 3b 20 49 20 3d | 20 55 57 69 6e 64 6f 77 |one; I =| UWindow|
|00000410| 50 61 67 65 43 6f 6e 74 | 72 6f 6c 50 61 67 65 28 |PageCont|rolPage(|
|00000420| 49 2e 4e 65 78 74 29 29 | 0d 0a 09 09 69 66 28 49 |I.Next))|....if(I|
|00000430| 2e 50 61 67 65 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |.Page !=| None)..|
|00000440| 09 09 09 49 2e 50 61 67 | 65 2e 4e 6f 74 69 66 79 |...I.Pag|e.Notify|
|00000450| 41 66 74 65 72 4c 65 76 | 65 6c 43 68 61 6e 67 65 |AfterLev|elChange|
|00000460| 28 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |();..}..|..functi|
|00000470| 6f 6e 20 47 65 74 44 65 | 73 69 72 65 64 44 69 6d |on GetDe|siredDim|
|00000480| 65 6e 73 69 6f 6e 73 28 | 6f 75 74 20 66 6c 6f 61 |ensions(|out floa|
|00000490| 74 20 57 2c 20 6f 75 74 | 20 66 6c 6f 61 74 20 48 |t W, out| float H|
|000004a0| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 66 6c 6f |)..{...l|ocal flo|
|000004b0| 61 74 20 4d 61 78 57 2c | 20 4d 61 78 48 2c 20 54 |at MaxW,| MaxH, T|
|000004c0| 57 2c 20 54 48 3b 0d 0a | 09 6c 6f 63 61 6c 20 55 |W, TH;..|.local U|
|000004d0| 57 69 6e 64 6f 77 50 61 | 67 65 43 6f 6e 74 72 6f |WindowPa|geContro|
|000004e0| 6c 50 61 67 65 20 49 3b | 0d 0a 09 0d 0a 09 4d 61 |lPage I;|......Ma|
|000004f0| 78 57 20 3d 20 30 3b 0d | 0a 09 4d 61 78 48 20 3d |xW = 0;.|..MaxH =|
|00000500| 20 30 3b 0d 0a 0d 0a 09 | 66 6f 72 28 49 20 3d 20 | 0;.....|for(I = |
|00000510| 55 57 69 6e 64 6f 77 50 | 61 67 65 43 6f 6e 74 72 |UWindowP|ageContr|
|00000520| 6f 6c 50 61 67 65 28 49 | 74 65 6d 73 2e 4e 65 78 |olPage(I|tems.Nex|
|00000530| 74 29 3b 20 49 20 21 3d | 20 4e 6f 6e 65 3b 20 49 |t); I !=| None; I|
|00000540| 20 3d 20 55 57 69 6e 64 | 6f 77 50 61 67 65 43 6f | = UWind|owPageCo|
|00000550| 6e 74 72 6f 6c 50 61 67 | 65 28 49 2e 4e 65 78 74 |ntrolPag|e(I.Next|
|00000560| 29 29 0d 0a 09 7b 0d 0a | 09 09 69 66 28 49 2e 50 |))...{..|..if(I.P|
|00000570| 61 67 65 20 21 3d 20 4e | 6f 6e 65 29 0d 0a 09 09 |age != N|one)....|
|00000580| 09 49 2e 50 61 67 65 2e | 47 65 74 44 65 73 69 72 |.I.Page.|GetDesir|
|00000590| 65 64 44 69 6d 65 6e 73 | 69 6f 6e 73 28 54 57 2c |edDimens|ions(TW,|
|000005a0| 20 54 48 29 3b 0d 0a 0d | 0a 09 09 69 66 28 54 57 | TH);...|...if(TW|
|000005b0| 20 3e 20 4d 61 78 57 29 | 20 4d 61 78 57 20 3d 20 | > MaxW)| MaxW = |
|000005c0| 54 57 3b 0d 0a 09 09 69 | 66 28 54 48 20 3e 20 4d |TW;....i|f(TH > M|
|000005d0| 61 78 48 29 20 4d 61 78 | 48 20 3d 20 54 48 3b 0d |axH) Max|H = TH;.|
|000005e0| 0a 09 7d 0d 0a 09 57 20 | 3d 20 4d 61 78 57 3b 0d |..}...W |= MaxW;.|
|000005f0| 0a 09 48 20 3d 20 4d 61 | 78 48 20 2b 20 54 61 62 |..H = Ma|xH + Tab|
|00000600| 41 72 65 61 2e 57 69 6e | 48 65 69 67 68 74 3b 0d |Area.Win|Height;.|
|00000610| 0a 7d 0d 0a 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |.}......|function|
|00000620| 20 42 65 66 6f 72 65 50 | 61 69 6e 74 28 43 61 6e | BeforeP|aint(Can|
|00000630| 76 61 73 20 43 2c 20 66 | 6c 6f 61 74 20 58 2c 20 |vas C, f|loat X, |
|00000640| 66 6c 6f 61 74 20 59 29 | 0d 0a 7b 0d 0a 09 6c 6f |float Y)|..{...lo|
|00000650| 63 61 6c 20 66 6c 6f 61 | 74 20 4f 6c 64 57 69 6e |cal floa|t OldWin|
|00000660| 48 65 69 67 68 74 3b 0d | 0a 09 6c 6f 63 61 6c 20 |Height;.|..local |
|00000670| 55 57 69 6e 64 6f 77 50 | 61 67 65 43 6f 6e 74 72 |UWindowP|ageContr|
|00000680| 6f 6c 50 61 67 65 20 49 | 3b 0d 0a 0d 0a 09 4f 6c |olPage I|;.....Ol|
|00000690| 64 57 69 6e 48 65 69 67 | 68 74 20 3d 20 57 69 6e |dWinHeig|ht = Win|
|000006a0| 48 65 69 67 68 74 3b 0d | 0a 09 53 75 70 65 72 2e |Height;.|..Super.|
|000006b0| 42 65 66 6f 72 65 50 61 | 69 6e 74 28 43 2c 20 58 |BeforePa|int(C, X|
|000006c0| 2c 20 59 29 3b 0d 0a 09 | 57 69 6e 48 65 69 67 68 |, Y);...|WinHeigh|
|000006d0| 74 20 3d 20 4f 6c 64 57 | 69 6e 48 65 69 67 68 74 |t = OldW|inHeight|
|000006e0| 3b 0d 0a 0d 0a 09 66 6f | 72 28 49 20 3d 20 55 57 |;.....fo|r(I = UW|
|000006f0| 69 6e 64 6f 77 50 61 67 | 65 43 6f 6e 74 72 6f 6c |indowPag|eControl|
|00000700| 50 61 67 65 28 49 74 65 | 6d 73 2e 4e 65 78 74 29 |Page(Ite|ms.Next)|
|00000710| 3b 20 49 20 21 3d 20 4e | 6f 6e 65 3b 20 49 20 3d |; I != N|one; I =|
|00000720| 20 55 57 69 6e 64 6f 77 | 50 61 67 65 43 6f 6e 74 | UWindow|PageCont|
|00000730| 72 6f 6c 50 61 67 65 28 | 49 2e 4e 65 78 74 29 29 |rolPage(|I.Next))|
|00000740| 0d 0a 09 09 4c 6f 6f 6b | 41 6e 64 46 65 65 6c 2e |....Look|AndFeel.|
|00000750| 54 61 62 5f 53 65 74 54 | 61 62 50 61 67 65 53 69 |Tab_SetT|abPageSi|
|00000760| 7a 65 28 53 65 6c 66 2c | 20 49 2e 50 61 67 65 29 |ze(Self,| I.Page)|
|00000770| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00000780| 20 50 61 69 6e 74 28 43 | 61 6e 76 61 73 20 43 2c | Paint(C|anvas C,|
|00000790| 20 66 6c 6f 61 74 20 58 | 2c 20 66 6c 6f 61 74 20 | float X|, float |
|000007a0| 59 29 0d 0a 7b 0d 0a 09 | 53 75 70 65 72 2e 50 61 |Y)..{...|Super.Pa|
|000007b0| 69 6e 74 28 43 2c 20 58 | 2c 20 59 29 3b 0d 0a 09 |int(C, X|, Y);...|
|000007c0| 4c 6f 6f 6b 41 6e 64 46 | 65 65 6c 2e 54 61 62 5f |LookAndF|eel.Tab_|
|000007d0| 44 72 61 77 54 61 62 50 | 61 67 65 41 72 65 61 28 |DrawTabP|ageArea(|
|000007e0| 53 65 6c 66 2c 20 43 2c | 20 55 57 69 6e 64 6f 77 |Self, C,| UWindow|
|000007f0| 50 61 67 65 43 6f 6e 74 | 72 6f 6c 50 61 67 65 28 |PageCont|rolPage(|
|00000800| 53 65 6c 65 63 74 65 64 | 54 61 62 29 2e 50 61 67 |Selected|Tab).Pag|
|00000810| 65 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |e);..}..|..functi|
|00000820| 6f 6e 20 55 57 69 6e 64 | 6f 77 50 61 67 65 43 6f |on UWind|owPageCo|
|00000830| 6e 74 72 6f 6c 50 61 67 | 65 20 41 64 64 50 61 67 |ntrolPag|e AddPag|
|00000840| 65 28 73 74 72 69 6e 67 | 20 43 61 70 74 69 6f 6e |e(string| Caption|
|00000850| 2c 20 63 6c 61 73 73 3c | 55 57 69 6e 64 6f 77 50 |, class<|UWindowP|
|00000860| 61 67 65 57 69 6e 64 6f | 77 3e 20 50 61 67 65 43 |ageWindo|w> PageC|
|00000870| 6c 61 73 73 2c 20 6f 70 | 74 69 6f 6e 61 6c 20 6e |lass, op|tional n|
|00000880| 61 6d 65 20 4f 62 6a 65 | 63 74 4e 61 6d 65 29 0d |ame Obje|ctName).|
|00000890| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 55 57 69 6e 64 |.{...loc|al UWind|
|000008a0| 6f 77 50 61 67 65 43 6f | 6e 74 72 6f 6c 50 61 67 |owPageCo|ntrolPag|
|000008b0| 65 20 50 3b 0d 0a 09 50 | 20 3d 20 55 57 69 6e 64 |e P;...P| = UWind|
|000008c0| 6f 77 50 61 67 65 43 6f | 6e 74 72 6f 6c 50 61 67 |owPageCo|ntrolPag|
|000008d0| 65 28 41 64 64 54 61 62 | 28 43 61 70 74 69 6f 6e |e(AddTab|(Caption|
|000008e0| 29 29 3b 0d 0a 09 50 2e | 50 61 67 65 20 3d 20 55 |));...P.|Page = U|
|000008f0| 57 69 6e 64 6f 77 50 61 | 67 65 57 69 6e 64 6f 77 |WindowPa|geWindow|
|00000900| 28 43 72 65 61 74 65 57 | 69 6e 64 6f 77 28 50 61 |(CreateW|indow(Pa|
|00000910| 67 65 43 6c 61 73 73 2c | 20 30 2c 20 0d 0a 09 09 |geClass,| 0, ....|
|00000920| 09 09 54 61 62 41 72 65 | 61 2e 57 69 6e 48 65 69 |..TabAre|a.WinHei|
|00000930| 67 68 74 2d 28 4c 6f 6f | 6b 41 6e 64 46 65 65 6c |ght-(Loo|kAndFeel|
|00000940| 2e 54 61 62 53 65 6c 65 | 63 74 65 64 4d 2e 48 2d |.TabSele|ctedM.H-|
|00000950| 4c 6f 6f 6b 41 6e 64 46 | 65 65 6c 2e 54 61 62 55 |LookAndF|eel.TabU|
|00000960| 6e 73 65 6c 65 63 74 65 | 64 4d 2e 48 29 2c 20 0d |nselecte|dM.H), .|
|00000970| 0a 09 09 09 09 57 69 6e | 57 69 64 74 68 2c 20 57 |.....Win|Width, W|
|00000980| 69 6e 48 65 69 67 68 74 | 2d 28 54 61 62 41 72 65 |inHeight|-(TabAre|
|00000990| 61 2e 57 69 6e 48 65 69 | 67 68 74 2d 28 4c 6f 6f |a.WinHei|ght-(Loo|
|000009a0| 6b 41 6e 64 46 65 65 6c | 2e 54 61 62 53 65 6c 65 |kAndFeel|.TabSele|
|000009b0| 63 74 65 64 4d 2e 48 2d | 4c 6f 6f 6b 41 6e 64 46 |ctedM.H-|LookAndF|
|000009c0| 65 65 6c 2e 54 61 62 55 | 6e 73 65 6c 65 63 74 65 |eel.TabU|nselecte|
|000009d0| 64 4d 2e 48 29 29 2c 2c | 2c 4f 62 6a 65 63 74 4e |dM.H)),,|,ObjectN|
|000009e0| 61 6d 65 29 29 3b 0d 0a | 09 50 2e 50 61 67 65 2e |ame));..|.P.Page.|
|000009f0| 4f 77 6e 65 72 54 61 62 | 20 3d 20 50 3b 0d 0a 0d |OwnerTab| = P;...|
|00000a00| 0a 09 69 66 28 50 20 21 | 3d 20 53 65 6c 65 63 74 |..if(P !|= Select|
|00000a10| 65 64 54 61 62 29 20 0d | 0a 09 09 50 2e 50 61 67 |edTab) .|...P.Pag|
|00000a20| 65 2e 48 69 64 65 57 69 | 6e 64 6f 77 28 29 3b 0d |e.HideWi|ndow();.|
|00000a30| 0a 09 65 6c 73 65 0d 0a | 09 69 66 28 55 57 69 6e |..else..|.if(UWin|
|00000a40| 64 6f 77 50 61 67 65 43 | 6f 6e 74 72 6f 6c 50 61 |dowPageC|ontrolPa|
|00000a50| 67 65 28 53 65 6c 65 63 | 74 65 64 54 61 62 29 20 |ge(Selec|tedTab) |
|00000a60| 21 3d 20 4e 6f 6e 65 20 | 26 26 20 57 69 6e 64 6f |!= None |&& Windo|
|00000a70| 77 49 73 56 69 73 69 62 | 6c 65 28 29 29 0d 0a 09 |wIsVisib|le())...|
|00000a80| 7b 0d 0a 09 09 55 57 69 | 6e 64 6f 77 50 61 67 65 |{....UWi|ndowPage|
|00000a90| 43 6f 6e 74 72 6f 6c 50 | 61 67 65 28 53 65 6c 65 |ControlP|age(Sele|
|00000aa0| 63 74 65 64 54 61 62 29 | 2e 50 61 67 65 2e 53 68 |ctedTab)|.Page.Sh|
|00000ab0| 6f 77 57 69 6e 64 6f 77 | 28 29 3b 0d 0a 09 09 55 |owWindow|();....U|
|00000ac0| 57 69 6e 64 6f 77 50 61 | 67 65 43 6f 6e 74 72 6f |WindowPa|geContro|
|00000ad0| 6c 50 61 67 65 28 53 65 | 6c 65 63 74 65 64 54 61 |lPage(Se|lectedTa|
|00000ae0| 62 29 2e 50 61 67 65 2e | 42 72 69 6e 67 54 6f 46 |b).Page.|BringToF|
|00000af0| 72 6f 6e 74 28 29 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |ront();.|..}.....|
|00000b00| 72 65 74 75 72 6e 20 50 | 3b 0d 0a 7d 0d 0a 0d 0a |return P|;..}....|
|00000b10| 66 75 6e 63 74 69 6f 6e | 20 55 57 69 6e 64 6f 77 |function| UWindow|
|00000b20| 50 61 67 65 43 6f 6e 74 | 72 6f 6c 50 61 67 65 20 |PageCont|rolPage |
|00000b30| 49 6e 73 65 72 74 50 61 | 67 65 28 55 57 69 6e 64 |InsertPa|ge(UWind|
|00000b40| 6f 77 50 61 67 65 43 6f | 6e 74 72 6f 6c 50 61 67 |owPageCo|ntrolPag|
|00000b50| 65 20 42 65 66 6f 72 65 | 50 61 67 65 2c 20 73 74 |e Before|Page, st|
|00000b60| 72 69 6e 67 20 43 61 70 | 74 69 6f 6e 2c 20 63 6c |ring Cap|tion, cl|
|00000b70| 61 73 73 3c 55 57 69 6e | 64 6f 77 50 61 67 65 57 |ass<UWin|dowPageW|
|00000b80| 69 6e 64 6f 77 3e 20 50 | 61 67 65 43 6c 61 73 73 |indow> P|ageClass|
|00000b90| 2c 20 6f 70 74 69 6f 6e | 61 6c 20 6e 61 6d 65 20 |, option|al name |
|00000ba0| 4f 62 6a 65 63 74 4e 61 | 6d 65 29 0d 0a 7b 0d 0a |ObjectNa|me)..{..|
|00000bb0| 09 6c 6f 63 61 6c 20 55 | 57 69 6e 64 6f 77 50 61 |.local U|WindowPa|
|00000bc0| 67 65 43 6f 6e 74 72 6f | 6c 50 61 67 65 20 50 3b |geContro|lPage P;|
|00000bd0| 0d 0a 0d 0a 09 69 66 28 | 42 65 66 6f 72 65 50 61 |.....if(|BeforePa|
|00000be0| 67 65 20 3d 3d 20 4e 6f | 6e 65 29 0d 0a 09 09 72 |ge == No|ne)....r|
|00000bf0| 65 74 75 72 6e 20 41 64 | 64 50 61 67 65 28 43 61 |eturn Ad|dPage(Ca|
|00000c00| 70 74 69 6f 6e 2c 20 50 | 61 67 65 43 6c 61 73 73 |ption, P|ageClass|
|00000c10| 29 3b 0d 0a 0d 0a 09 50 | 20 3d 20 55 57 69 6e 64 |);.....P| = UWind|
|00000c20| 6f 77 50 61 67 65 43 6f | 6e 74 72 6f 6c 50 61 67 |owPageCo|ntrolPag|
|00000c30| 65 28 49 6e 73 65 72 74 | 54 61 62 28 42 65 66 6f |e(Insert|Tab(Befo|
|00000c40| 72 65 50 61 67 65 2c 20 | 43 61 70 74 69 6f 6e 29 |rePage, |Caption)|
|00000c50| 29 3b 0d 0a 09 50 2e 50 | 61 67 65 20 3d 20 55 57 |);...P.P|age = UW|
|00000c60| 69 6e 64 6f 77 50 61 67 | 65 57 69 6e 64 6f 77 28 |indowPag|eWindow(|
|00000c70| 43 72 65 61 74 65 57 69 | 6e 64 6f 77 28 50 61 67 |CreateWi|ndow(Pag|
|00000c80| 65 43 6c 61 73 73 2c 20 | 30 2c 20 0d 0a 09 09 09 |eClass, |0, .....|
|00000c90| 09 54 61 62 41 72 65 61 | 2e 57 69 6e 48 65 69 67 |.TabArea|.WinHeig|
|00000ca0| 68 74 2d 28 4c 6f 6f 6b | 41 6e 64 46 65 65 6c 2e |ht-(Look|AndFeel.|
|00000cb0| 54 61 62 53 65 6c 65 63 | 74 65 64 4d 2e 48 2d 4c |TabSelec|tedM.H-L|
|00000cc0| 6f 6f 6b 41 6e 64 46 65 | 65 6c 2e 54 61 62 55 6e |ookAndFe|el.TabUn|
|00000cd0| 73 65 6c 65 63 74 65 64 | 4d 2e 48 29 2c 20 0d 0a |selected|M.H), ..|
|00000ce0| 09 09 09 09 57 69 6e 57 | 69 64 74 68 2c 20 57 69 |....WinW|idth, Wi|
|00000cf0| 6e 48 65 69 67 68 74 2d | 28 54 61 62 41 72 65 61 |nHeight-|(TabArea|
|00000d00| 2e 57 69 6e 48 65 69 67 | 68 74 2d 28 4c 6f 6f 6b |.WinHeig|ht-(Look|
|00000d10| 41 6e 64 46 65 65 6c 2e | 54 61 62 53 65 6c 65 63 |AndFeel.|TabSelec|
|00000d20| 74 65 64 4d 2e 48 2d 4c | 6f 6f 6b 41 6e 64 46 65 |tedM.H-L|ookAndFe|
|00000d30| 65 6c 2e 54 61 62 55 6e | 73 65 6c 65 63 74 65 64 |el.TabUn|selected|
|00000d40| 4d 2e 48 29 29 2c 2c 2c | 4f 62 6a 65 63 74 4e 61 |M.H)),,,|ObjectNa|
|00000d50| 6d 65 29 29 3b 0d 0a 09 | 50 2e 50 61 67 65 2e 4f |me));...|P.Page.O|
|00000d60| 77 6e 65 72 54 61 62 20 | 3d 20 50 3b 0d 0a 0d 0a |wnerTab |= P;....|
|00000d70| 09 69 66 28 50 20 21 3d | 20 53 65 6c 65 63 74 65 |.if(P !=| Selecte|
|00000d80| 64 54 61 62 29 20 0d 0a | 09 09 50 2e 50 61 67 65 |dTab) ..|..P.Page|
|00000d90| 2e 48 69 64 65 57 69 6e | 64 6f 77 28 29 3b 0d 0a |.HideWin|dow();..|
|00000da0| 09 65 6c 73 65 0d 0a 09 | 69 66 28 55 57 69 6e 64 |.else...|if(UWind|
|00000db0| 6f 77 50 61 67 65 43 6f | 6e 74 72 6f 6c 50 61 67 |owPageCo|ntrolPag|
|00000dc0| 65 28 53 65 6c 65 63 74 | 65 64 54 61 62 29 20 21 |e(Select|edTab) !|
|00000dd0| 3d 20 4e 6f 6e 65 20 26 | 26 20 57 69 6e 64 6f 77 |= None &|& Window|
|00000de0| 49 73 56 69 73 69 62 6c | 65 28 29 29 0d 0a 09 7b |IsVisibl|e())...{|
|00000df0| 0d 0a 09 09 55 57 69 6e | 64 6f 77 50 61 67 65 43 |....UWin|dowPageC|
|00000e00| 6f 6e 74 72 6f 6c 50 61 | 67 65 28 53 65 6c 65 63 |ontrolPa|ge(Selec|
|00000e10| 74 65 64 54 61 62 29 2e | 50 61 67 65 2e 53 68 6f |tedTab).|Page.Sho|
|00000e20| 77 57 69 6e 64 6f 77 28 | 29 3b 0d 0a 09 09 55 57 |wWindow(|);....UW|
|00000e30| 69 6e 64 6f 77 50 61 67 | 65 43 6f 6e 74 72 6f 6c |indowPag|eControl|
|00000e40| 50 61 67 65 28 53 65 6c | 65 63 74 65 64 54 61 62 |Page(Sel|ectedTab|
|00000e50| 29 2e 50 61 67 65 2e 42 | 72 69 6e 67 54 6f 46 72 |).Page.B|ringToFr|
|00000e60| 6f 6e 74 28 29 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 72 |ont();..|.}.....r|
|00000e70| 65 74 75 72 6e 20 50 3b | 0d 0a 7d 0d 0a 0d 0a 66 |eturn P;|..}....f|
|00000e80| 75 6e 63 74 69 6f 6e 20 | 55 57 69 6e 64 6f 77 50 |unction |UWindowP|
|00000e90| 61 67 65 43 6f 6e 74 72 | 6f 6c 50 61 67 65 20 47 |ageContr|olPage G|
|00000ea0| 65 74 50 61 67 65 28 73 | 74 72 69 6e 67 20 43 61 |etPage(s|tring Ca|
|00000eb0| 70 74 69 6f 6e 29 0d 0a | 7b 0d 0a 09 72 65 74 75 |ption)..|{...retu|
|00000ec0| 72 6e 20 55 57 69 6e 64 | 6f 77 50 61 67 65 43 6f |rn UWind|owPageCo|
|00000ed0| 6e 74 72 6f 6c 50 61 67 | 65 28 47 65 74 54 61 62 |ntrolPag|e(GetTab|
|00000ee0| 28 43 61 70 74 69 6f 6e | 29 29 3b 0d 0a 7d 0d 0a |(Caption|));..}..|
|00000ef0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 44 65 6c 65 74 |..functi|on Delet|
|00000f00| 65 50 61 67 65 28 55 57 | 69 6e 64 6f 77 50 61 67 |ePage(UW|indowPag|
|00000f10| 65 43 6f 6e 74 72 6f 6c | 50 61 67 65 20 50 29 0d |eControl|Page P).|
|00000f20| 0a 7b 0d 0a 09 50 2e 50 | 61 67 65 2e 43 6c 6f 73 |.{...P.P|age.Clos|
|00000f30| 65 28 54 72 75 65 29 3b | 0d 0a 09 50 2e 50 61 67 |e(True);|...P.Pag|
|00000f40| 65 2e 48 69 64 65 57 69 | 6e 64 6f 77 28 29 3b 0d |e.HideWi|ndow();.|
|00000f50| 0a 09 44 65 6c 65 74 65 | 54 61 62 28 50 29 3b 0d |..Delete|Tab(P);.|
|00000f60| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 43 |.}....fu|nction C|
|00000f70| 6c 6f 73 65 28 6f 70 74 | 69 6f 6e 61 6c 20 62 6f |lose(opt|ional bo|
|00000f80| 6f 6c 20 62 42 79 50 61 | 72 65 6e 74 29 0d 0a 7b |ol bByPa|rent)..{|
|00000f90| 0d 0a 09 6c 6f 63 61 6c | 20 55 57 69 6e 64 6f 77 |...local| UWindow|
|00000fa0| 50 61 67 65 43 6f 6e 74 | 72 6f 6c 50 61 67 65 20 |PageCont|rolPage |
|00000fb0| 49 3b 0d 0a 0d 0a 09 66 | 6f 72 28 49 20 3d 20 55 |I;.....f|or(I = U|
|00000fc0| 57 69 6e 64 6f 77 50 61 | 67 65 43 6f 6e 74 72 6f |WindowPa|geContro|
|00000fd0| 6c 50 61 67 65 28 49 74 | 65 6d 73 2e 4e 65 78 74 |lPage(It|ems.Next|
|00000fe0| 29 3b 20 49 20 21 3d 20 | 4e 6f 6e 65 3b 20 49 20 |); I != |None; I |
|00000ff0| 3d 20 55 57 69 6e 64 6f | 77 50 61 67 65 43 6f 6e |= UWindo|wPageCon|
|00001000| 74 72 6f 6c 50 61 67 65 | 28 49 2e 4e 65 78 74 29 |trolPage|(I.Next)|
|00001010| 29 0d 0a 09 09 69 66 28 | 49 2e 50 61 67 65 20 21 |)....if(|I.Page !|
|00001020| 3d 20 4e 6f 6e 65 29 0d | 0a 09 09 09 49 2e 50 61 |= None).|....I.Pa|
|00001030| 67 65 2e 43 6c 6f 73 65 | 28 54 72 75 65 29 3b 0d |ge.Close|(True);.|
|00001040| 0a 0d 0a 09 53 75 70 65 | 72 2e 43 6c 6f 73 65 28 |....Supe|r.Close(|
|00001050| 62 42 79 50 61 72 65 6e | 74 29 3b 0d 0a 7d 0d 0a |bByParen|t);..}..|
|00001060| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 47 6f 74 6f 54 |..functi|on GotoT|
|00001070| 61 62 28 55 57 69 6e 64 | 6f 77 54 61 62 43 6f 6e |ab(UWind|owTabCon|
|00001080| 74 72 6f 6c 49 74 65 6d | 20 4e 65 77 53 65 6c 65 |trolItem| NewSele|
|00001090| 63 74 65 64 2c 20 6f 70 | 74 69 6f 6e 61 6c 20 62 |cted, op|tional b|
|000010a0| 6f 6f 6c 20 62 42 79 55 | 73 65 72 29 0d 0a 7b 0d |ool bByU|ser)..{.|
|000010b0| 0a 09 6c 6f 63 61 6c 20 | 55 57 69 6e 64 6f 77 50 |..local |UWindowP|
|000010c0| 61 67 65 43 6f 6e 74 72 | 6f 6c 50 61 67 65 20 49 |ageContr|olPage I|
|000010d0| 3b 0d 0a 0d 0a 09 53 75 | 70 65 72 2e 47 6f 74 6f |;.....Su|per.Goto|
|000010e0| 54 61 62 28 4e 65 77 53 | 65 6c 65 63 74 65 64 2c |Tab(NewS|elected,|
|000010f0| 20 62 42 79 55 73 65 72 | 29 3b 0d 0a 0d 0a 09 66 | bByUser|);.....f|
|00001100| 6f 72 28 49 20 3d 20 55 | 57 69 6e 64 6f 77 50 61 |or(I = U|WindowPa|
|00001110| 67 65 43 6f 6e 74 72 6f | 6c 50 61 67 65 28 49 74 |geContro|lPage(It|
|00001120| 65 6d 73 2e 4e 65 78 74 | 29 3b 49 20 21 3d 20 4e |ems.Next|);I != N|
|00001130| 6f 6e 65 3b 49 20 3d 20 | 55 57 69 6e 64 6f 77 50 |one;I = |UWindowP|
|00001140| 61 67 65 43 6f 6e 74 72 | 6f 6c 50 61 67 65 28 49 |ageContr|olPage(I|
|00001150| 2e 4e 65 78 74 29 29 0d | 0a 09 7b 0d 0a 09 09 69 |.Next)).|..{....i|
|00001160| 66 28 49 20 21 3d 20 4e | 65 77 53 65 6c 65 63 74 |f(I != N|ewSelect|
|00001170| 65 64 29 0d 0a 09 09 09 | 49 2e 50 61 67 65 2e 48 |ed).....|I.Page.H|
|00001180| 69 64 65 57 69 6e 64 6f | 77 28 29 3b 09 09 09 0d |ideWindo|w();....|
|00001190| 0a 09 7d 0d 0a 0d 0a 09 | 69 66 28 55 57 69 6e 64 |..}.....|if(UWind|
|000011a0| 6f 77 50 61 67 65 43 6f | 6e 74 72 6f 6c 50 61 67 |owPageCo|ntrolPag|
|000011b0| 65 28 4e 65 77 53 65 6c | 65 63 74 65 64 29 20 21 |e(NewSel|ected) !|
|000011c0| 3d 20 4e 6f 6e 65 29 0d | 0a 09 09 55 57 69 6e 64 |= None).|...UWind|
|000011d0| 6f 77 50 61 67 65 43 6f | 6e 74 72 6f 6c 50 61 67 |owPageCo|ntrolPag|
|000011e0| 65 28 4e 65 77 53 65 6c | 65 63 74 65 64 29 2e 50 |e(NewSel|ected).P|
|000011f0| 61 67 65 2e 53 68 6f 77 | 57 69 6e 64 6f 77 28 29 |age.Show|Window()|
|00001200| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00001210| 20 55 57 69 6e 64 6f 77 | 50 61 67 65 43 6f 6e 74 | UWindow|PageCont|
|00001220| 72 6f 6c 50 61 67 65 20 | 46 69 72 73 74 50 61 67 |rolPage |FirstPag|
|00001230| 65 28 29 0d 0a 7b 0d 0a | 09 72 65 74 75 72 6e 20 |e()..{..|.return |
|00001240| 55 57 69 6e 64 6f 77 50 | 61 67 65 43 6f 6e 74 72 |UWindowP|ageContr|
|00001250| 6f 6c 50 61 67 65 28 49 | 74 65 6d 73 2e 4e 65 78 |olPage(I|tems.Nex|
|00001260| 74 29 3b 0d 0a 7d 0d 0a | 0d 0a 00 |t);..}..|... |
+--------+-------------------------+-------------------------+--------+--------+